package org.wzl.springapplication.mapper;

import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.wzl.springapplication.pojo.TaskRecord;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;
import java.util.Map;

/**
* @author wzl
* @description 针对表【task_record】的数据库操作Mapper
* @createDate 2023-07-29 19:38:51
* @Entity org.wzl.springapplication.pojo.TaskRecord
*/
@Mapper
public interface TaskRecordMapper extends BaseMapper<TaskRecord> {

    @MapKey("user_name")
    List<Map<String, Object>> getAllName();

    @MapKey("name")
    List<Map<String, Object>> getAllRecordByNameInWeek(@Param("name")String name);

    String getCountByName(@Param("name") String name);
}




